<%@page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<%
	String path =request.getContextPath();
%>
<head>
    <meta http-equiv="x-ua-compatible" content="ie=7" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script language="javascript" type="text/javascript" src="<%=path%>/js/validatorTool.js"></script>
	<script type="text/javascript">
        //导出
        function exportData(){
			document.form1.action="<%=path%>/other/exportCtExecutiveHZ?isList=y";
			document.form1.submit();
		}	
		//查询数据
		function qryData(){
			document.form1.action="<%=path%>/other/qryctExecutiveHZList";
			document.form1.submit();
		}
    </script>
</head>
<body class="fullbody">
            <div class="context">
                <div class="position">
                    <div class="tposi">当前位置：
                        <a href="javascript:changeMenu(1,'<%=path%>/infopub/pubmain?menuid=1');"class="linkstyle">首页</a>&nbsp;&gt;&gt;&nbsp;
                   		<a href="javascript:changeMenu(5,'');" class="linkstyle">业务查询</a>&nbsp;&gt;&gt;&nbsp;
                        <span class="curposition">合同执行明细查询</span>
                    </div>
                    <div class="help">
						<a href="javascript:void(null);" onclick="doHelp('<%=request.getContextPath()%>/help/html/DHCX.html');" class="linkstyle">帮助</a>
					</div>
                </div>
                <div class="margin8"></div>
                <div class="subpage_title">
                    <div class="title_index">
                        <img src="<%=path%>/images/common/dot03.gif" alt="" border="0" />&nbsp;合同执行明细查询</div>
                </div>
                <div class="margin20"></div>
                <div class="subpage_bidlist">
                    <div class="subpage_search" >
                    <!-- 合同号*、存货编码*、存货名称（包含）、主机号、图号、收货单位、日期、订单号(采购)
                     -->
                    	<form name="form1" action="<%=path%>/other/qryctExecutiveMXList" method="post">
	                        <table border="0" cellpadding="0" cellspacing="0" class="searchtable">
	                            <tr>
	                                <td valign="middle" class="w_1">合同号：</td>
	                                <td valign="middle" class="w_2">
	                                    <input id="ctcode" name="ctcode" type="text" value="${CtExecutiveHZHeadForm.pocode}" class="searchtext" />
	                                </td>
	                                <td valign="middle" class="w_1">存货编码：</td>
	                                <td valign="middle" class="w_2">
	                                    <input id="invcode" name="invcode" type="text" value="${CtExecutiveHZHeadForm.invcode}" class="searchtext" />
	                                </td>
	                            </tr>
	                             <tr>
	                                <td valign="middle" class="w_1">存货名称：</td>
	                                <td valign="middle" class="w_2">
	                                    <input id="invname" name="invname" type="text" value="${CtExecutiveHZHeadForm.invname}" class="searchtext" />
	                                </td>
	                                <td valign="middle" class="w_1">主机号：</td>
	                                <td valign="middle" class="w_2">
	                                    <input id="zjh" name="zjh" type="text" value="${CtExecutiveHZHeadForm.zjh}" class="searchtext" />
	                                </td>
	                            </tr>
	                                  <tr>
	                                <td valign="middle" class="w_1">图号：</td>
	                                <td valign="middle" class="w_2">
	                                    <input id="th" name="th" type="text" value="${CtExecutiveHZHeadForm.th}" class="searchtext" />
	                                </td>
	                                <td valign="middle" class="w_1">收货单位：</td>
	                                <td valign="middle" class="w_2">
	                                    <input id="shdw" name="shdw" type="text" value="${CtExecutiveHZHeadForm.shdw}" class="searchtext" />
	                                </td>
	                            </tr>
	                            <tr>
	                                <td valign="middle" class="w_1">合同生效日期：</td>
	                                <td valign="middle" class="w_2">
	                                    <input id="ctsxdate" name="ctsxdate" type="text" 
	                                    	onclick="return showCalendar('ctsxdate', 'y-mm-dd');" 
		                                    readonly="readonly"	value="${CtExecutiveHZHeadForm.ctbegindate}" class="searchdate" />&nbsp;至&nbsp;
	                                    <input id="ctjzdate" name="ctjzdate" type="text" 
											onclick="return showCalendar('ctjzdate', 'y-mm-dd');"  
	                                    	readonly="readonly" value="${CtExecutiveHZHeadForm.ctenddate}" class="searchdate" />
	                                </td>
	                            </tr>
	                           
	                            <tr><td colspan="4">&nbsp;</td></tr>
	                            <tr>
	                                <td valign="middle" colspan="4" align="center">
	                                    <input type="button" class="btnscs" value="查询"  onclick="qryData()"/>&nbsp;&nbsp;
	                                    <input type="button" class="btnscs" value="取消" onclick="resetData()"/>&nbsp;&nbsp;
	                                </td>
	                            </tr>
	                        </table>
                        </form>
                    </div>
                    <div class="margin20">
                    </div>
                    <!--  消耗公司、消耗日期、采购合同号、供应商编码、存货编码、存货名称、规格、图号、主机号、技术要求、计量单位、消耗汇总数量、累计结算数量、结算完成标志、已开票数量、开票完成标志。
                     -->
                    <div>
                         <table class="tableCss" cellpadding="0" cellspacing="0" >
							<tr  class="titleTr" >
                                <th width="17%">合同信息</th>
                                <th width="17%">存货信息</th>
                                <th width="23%">订单信息 </th>
                                <th width="30%">数量信息</th>
                            </tr>
                            <c:if test="${ctexecutiveForms!=null}">
								<c:forEach items="${ctexecutiveForms}" var="ctexecutiveForms" varStatus="index">
									<c:if test="${index.index%2==1}">
										<tr align="left" class="contTr-old"  >
									</c:if>
									<c:if test="${index.index%2==0}">
										<tr align="left" class="contTr-even">
									</c:if>
										<td class="td1">
												<c:if test="${ctexecutiveForms.ctcode!=null && ''!=ctexecutiveForms.ctcode}">合同号：${ctexecutiveForms.ctcode}<br/></c:if>
												<c:if test="${ctexecutiveForms.ctsxdate!=null && ''!=ctexecutiveForms.ctsxdate}">合同生效日期：${ctexecutiveForms.ctsxdate}<br/></c:if>
												<c:if test="${ctexecutiveForms.ctjzdate!=null  && ''!=ctexecutiveForms.ctjzdate}">合同截止日期：${ctexecutiveForms.ctjzdate}<br/></c:if>
												<c:if test="${ctexecutiveForms.ctnum!=null  && ''!=ctexecutiveForms.ctnum}">合同数量：${ctexecutiveForms.ctnum}<br/></c:if>
												<c:if test="${ctexecutiveForms.suppliername!=null  && ''!=ctexecutiveForms.suppliername}">供应商名称：${ctexecutiveForms.suppliername}<br/></c:if>
												<c:if test="${ctexecutiveForms.demandcorp!=null  && ''!=ctexecutiveForms.demandcorp}">需求单位：${ctexecutiveForms.demandcorp}<br/></c:if>
												<c:if test="${ctexecutiveForms.hsdj!=null  && ''!=ctexecutiveForms.hsdj}">含税单价：${ctexecutiveForms.hsdj}<br/></c:if>
												<c:if test="${ctexecutiveForms.hsje!=null  && ''!=ctexecutiveForms.hsje}">含税金额：${ctexecutiveForms.hsje}<br/></c:if>
										</td>
										<td class="td1">
												存货编码：${ctexecutiveForms.invcode}<br/>
												存货名称：${ctexecutiveForms.invname}<br/>
												规格：${ctexecutiveForms.spec}<br/>
												图号：${ctexecutiveForms.th}<br/>
												主机号：${ctexecutiveForms.zjh}<br/>
												技术要求：${ctexecutiveForms.jsyq}<br/>
												计量单位：${ctexecutiveForms.jldw}<br/>
										</td>
										<td class="td1">
												
												订单数量：${ctexecutiveForms.ddsl}<br/>
												
										</td>
										<td class="td1">
												入库数量：${ctexecutiveForms.ljrksl}<br/>
												未入库数量：${ctexecutiveForms.ljwrksl}<br/>
												累计发票数量:${ctexecutiveForms.ljfpsl}<br/>
												出库数量:${ctexecutiveForms.ljcksl}<br/>
												累计消耗数量:${ctexecutiveForms.ljxhsl}<br/>
												累计结算数量:${ctexecutiveForms.ljjssl}<br/>
												累计未结算数量:${ctexecutiveForms.ljwjssl}<br/>
										</td>
									</tr>
								</c:forEach>
							</c:if>
                        </table>
                    </div>
                </div>
            </div>
        <div class="margin20"></div>
        <div class="margin8">
        	<table align="left">
				<tr class="title">
					<td>
						<div id="message" class="msgcolor">${system_err_msg}</div>
					</td>
				</tr>
			</table>
		</div> 
</body>
</html>
